import request from '@/utils/request'

// 获取员工简单列表
export const getManagerList = () => {
  return request({
    url: '/sys/user/simple'
  })
}

// 获取所有员工列表

export const getEmployeeList = (params) => {
  return request({
    url: '/sys/user',
    params
  })
}

// 新增员工
export const addEmployee = (data) => {
  return request({
    url: '/sys/user',
    method: 'POST',
    data
  })
}

// 删除员工
export const delEmployee = (id) => {
  return request({
    url: `/sys/user/${id}`,
    method: 'DELETE'
  })
}
